﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using MaxLeaf.KH.Contract;
using MaxLeaf.KH.DALImplementation;
using MaxLeaf.KH.DataContract;
using CommonsLib.Utility;

namespace MaxLeaf.KH.DALServer
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“BasicMtnDALServer”。
    public class BasicMtnDALServer :BaseDALServer, IBasicMtn
    {

        IBasicMtn _dal = null;
        public virtual IBasicMtn CurrentDAL
        {
            get
            {
                if (_dal == null)
                {
                    _dal = new BasicMtnDAL();
                }
                return _dal;
            }
        }


        public object Select(object model, int intKeyValue)
        {
            
                return CurrentDAL.Select(model, intKeyValue);
            
        }

        public List<object>  SelectDtl(object model, int intForeignKeyValue)
        {

            return CurrentDAL.SelectDtl(model, intForeignKeyValue);

        }

        public object Add(object model)
        {
             
                return CurrentDAL.Add(model);
            
            
        }

        public object Update(object model)
        {
             
                return CurrentDAL.Update(model);
             
        }

        public object Delete(object model)
        {
             
                return CurrentDAL.Delete(model);
             
             
        }
    }
}
